(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/delivery/delivery" ], {
    "47a1": function(e, s, i) {
        i.d(s, "b", function() {
            return t;
        }), i.d(s, "c", function() {
            return n;
        }), i.d(s, "a", function() {});
        var t = function() {
            var e = this;
            e.$createElement, e._self._c, e._isMounted || (e.e0 = function(s) {
                e.showDetail = !1;
            });
        }, n = [];
    },
    8759: function(e, s, i) {
        (function(e) {
            i("98af"), t(i("66fd"));
            var s = t(i("9c3b"));
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, e(s.default);
        }).call(this, i("543d").createPage);
    },
    8884: function(e, s, i) {
        (function(e) {
            Object.defineProperty(s, "__esModule", {
                value: !0
            }), s.default = void 0;
            var t = {
                mixins: [ i("ebe2").openMsgTanChuan ],
                components: {
                    detailModal: function() {
                        i.e("pages/delivery/components/detail-modal").then(function() {
                            return resolve(i("fcb8"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    expressModal: function() {
                        i.e("pages/delivery/components/express-modal").then(function() {
                            return resolve(i("b837"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    remarkModal: function() {
                        i.e("pages/delivery/components/remark-modal").then(function() {
                            return resolve(i("3b02"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    selectTimeModal: function() {
                        i.e("pages/delivery/components/select-time-modal").then(function() {
                            return resolve(i("b36d"));
                        }.bind(null, i)).catch(i.oe);
                    },
                    zbPayModal: function() {
                        i.e("components/zb-pay/zb-pay").then(function() {
                            return resolve(i("26cd"));
                        }.bind(null, i)).catch(i.oe);
                    }
                },
                data: function() {
                    return {
                        xuzhi:0,
                        title_content: "",
                        model: "1",
                        tabMap: [{
                          value: "1",
                          label: "寄快递"
                        }, {
                          value: "3",
                          label: "寄大件"
                        }, {
                          value: "9",
                          label: "同城急送"
                        }],
                        vip: !1,
                        type: "",
                        changeType: "",
                        showDetail: !1,
                        payload: {
                            smail_id: "",
                            rmail_id: "",
                            cargodata: {
                            name: "日用品",
                            distance: "",
                                express_code: "",
                                express_channel: "",
                                transportType: ""
                            },
                            totalNumber: "",
                            totalWeight: "0",
                            long: "",
                            width: "",
                            height: "",
                            sendStartTime: "",
                            sendEndTime: "",
                            remark: "",
                            insuranceValue: "",
                            insurancePrice: "",
                            is_agree: "on",
                            coupon_code: "",
                            isShared: 0,
                            isCoupon: "",
                            isVip: "",
                            discountmoney: 0
                        },
                        sendAddr: "",
                        receiptAddr: "",
                        expressInfo: "",
                        couponInfo: "",
                        couponNum: 0,
                        form: {
                            order_id: "",
                            paytype: "balance",
                            ordertype: "1"
                        },
                        submitName: "立即下单",
                        coupon_title: "未使用",
                        noticeList: [],
                        noticeListTitle: "",
                        noticeHeight: "",
                        volumetext: "",
                        wlxfJump: !0,
                        is_dw: "",
                        is_yuyue: !1,
						is_baojia: !1,
						xuzhi_title:'·若体积大重量轻，通常会按“体积折算重量”的计费方 式，导致与下单页面显示的预估价格差异大(如被子，枕头，行李箱，毛绒玩具，鞋盒等)。',
                        share: {
                            title: "\t好友喊你寄快递，领好友券下单更实惠",
                            imgUrl: "https://im.jintaocms.com/static/default/wap/img/share.png"
                        }
                    };
                },
                computed: {
                    disabled: function() {
                        return !(this.sendAddr && this.receiptAddr && this.expressInfo && this.payload.is_agree && this.payload.totalWeight && this.payload.cargodata.name && this.wlxfJump);
                    },
                    wupin: function() {
                        return this.payload.cargodata.name && this.payload.totalWeight;
                    },
                    expressValue: function() {
                        var e = 0;
                        return this.expressInfo && ("DEPPON" == this.expressInfo.name && "1" == this.expressInfo.channel ? e += this.expressInfo ? Number(this.expressInfo.paymentAmount) : 0 : 1 == this.vip ? e += this.expressInfo ? Number(this.expressInfo.paymentAmount) : 0 : e += this.expressInfo ? Number(this.expressInfo.paymentAmount) : 0), 
                        e -= this.couponInfo ? Number(this.couponInfo.money) : 0, e = (e += this.payload.insurancePrice > 0 ? Number(this.payload.insurancePrice) : 0) > 0 ? parseFloat(e.toFixed(2)) : 0, 
                        0 != this.payload.isShared ? e -= this.payload.discountmoney : parseFloat(e.toFixed(2)), 
                        this.expressInfo.otherCost && this.expressInfo.otherCost.map(function(s) {
                            e += s.money;
                        }), e.toFixed(2);
                    },
                    expressUrl: function() {
                        return {
                            1: "/pages/member/address/address?type=2",
                            2: "/pages/member/get-address/get-address?type=2",
                            3: "/pages/member/address/address?type=2",
                            4: "/pages/member/address/address?type=2",
                            5: "/pages/member/address/address?type=2"
                        }[this.type];
                    }
                },
                methods: {
					changeTab: function (t) {
						if(t == 1) {
							e.redirectTo({
								url: "/pages/delivery/delivery?type=1"
							});
						}
						if(t == 3) {
							e.redirectTo({
								url: "/pages/delivery/delivery?type=3"
							});
						}
						if(t == 9) {
							e.redirectTo({
								url: "/pages/delivery/delivery?type=9"
							});
						}
					},
					hideService: function() {
                        this.$refs.popup_xuzhi.hide(), this.xuzhi = !1;
					},
					showService: function() {
                        this.$refs.popup_xuzhi.hide(), this.xuzhi = !1;
                    },
                    getCouponNum: function() {
                        var e = this;
                        this.$api.getCountApi({}, function(s) {
                            "1" == s.code ? e.couponNum = s.data.count || 0 : e.$common.errorToShow(s.msg);
                        });
                    },
                    openDetail: function() {
                        this.expressInfo ? this.showDetail = !this.showDetail : this.$common.errorToShow("请选择配送公司");
                    },
                    openModal: function(e) {
                        if ("expressModule" !== e) {
                            if ("selectTimeModule" == e) {
                                var s = {
                                    expressInfo: this.expressInfo
                                };
                                if (!this.$common.validate({
                                    expressInfo: {
                                        name: "配送公司"
                                    }
                                }, s)) return;
                            }
                            this.$refs[e].open();
                        } else {
                            var i = this.payload, t = i.long, n = i.width, r = i.height, d = i.totalWeight, o = {
                                sendAddr: this.sendAddr,
                                receiptAddr: this.receiptAddr,
                                totalWeight: d
                            };
                            this.$common.validate({
                                sendAddr: {
                                    name: "寄件地址"
                                },
                                receiptAddr: {
                                    name: "收件地址"
                                },
                                totalWeight: {
                                    name: "物品信息"
                                }
                            }, o) && this.$refs[e].open({
                                sender_province: this.sendAddr.sender_province,
                                sender_city: this.sendAddr.sender_city,
                                sender_area: this.sendAddr.sender_area,
								sender_address: this.sendAddr.sender_address,
								sender_addr: this.sendAddr.addr,
								sender_getAddr: this.sendAddr.getAddr,
                                sender_name: this.sendAddr.sender_name,
                                sender_mobile: this.sendAddr.sender_mobile,
								sender_phone: this.sendAddr.sender_phone,
								sender_lat: this.sendAddr.sender_lat?this.sendAddr.sender_lat:this.sendAddr.lat,
                                sender_lng: this.sendAddr.sender_lng?this.sendAddr.sender_lng:this.sendAddr.lng,
                                recipients_province: this.receiptAddr.sender_province,
                                recipients_city: this.receiptAddr.city,
                                recipients_area: this.receiptAddr.sender_area,
                                recipients_name: this.receiptAddr.sender_name,
                                recipients_mobile: this.receiptAddr.sender_mobile,
                                recipients_phone: this.receiptAddr.sender_phone,
								recipients_address: this.receiptAddr.sender_address,
								recipients_addr:this.receiptAddr.addr,
								recipients_getAddr:this.receiptAddr.getAddr,
								addr:this.receiptAddr.addr,
                                getAddr:this.receiptAddr.getAddr,
                                recipients_lat: this.receiptAddr.lat,
                                recipients_lng: this.receiptAddr.lng,
                                totalWeight: d,
                                cate_id: this.cate_id,
                                long: t,
                                width: n,
                                height: r,
                                type: this.type,
                                is_dw: this.is_dw
                            });
                        }
                    },
                    skipPage: function(e, s) {
                        if ("insurance" == s) {
                            var i = {
                                wupin: this.wupin,
                                expressInfo: this.expressInfo
                            };
                            if (!this.$common.validate({
                                wupin: {
                                    name: "物品信息"
                                },
                                expressInfo: {
                                    name: "配送公司"
                                }
                            }, i)) return;
                            var t = {
                                insuranceValue: this.payload.insuranceValue,
                                insurancePrice: this.payload.insurancePrice
                            };
                            this.$db.set("expressInfo", this.expressInfo), this.$db.set("insurance", t);
                        } else if ("goodsModule" == s) e = e + "?type=" + this.type; else if ("couponModule" == s) {
                            var n = {
                                wupin: this.wupin,
                                expressInfo: this.expressInfo
                            };
                            if (!this.$common.validate({
                                expressInfo: {
                                    name: "配送公司"
                                }
                            }, n)) return;
                            e = e + "?status=0&pay_money=" + this.expressValue + "&express_code=" + this.expressInfo.name;
                        } else this.changeType = s;
                        e && this.$common.navigateTo(e);
                    },
                    getAddUrl: function(e){
						var type = this.type;
						var e = e;
						var t = 0;
						if(e==0){
						  t =1;
						}else{
						  t =2;
						}
						var t = "/pages/member/address/address?type="+t+"&tc="+type;
						this.skipPage(t, e);
					  },
					  addressDirectUrl: function(e) {
						  if (1 != e || "2" != this.type) {
							  var s = "", i = "", t = "";
							  this.sendAddr.id && (s = "&mail_id=" + this.sendAddr.id), this.receiptAddr.id && (i = "&mail_id=" + this.receiptAddr.id), 
							  0 == e ? t = "/pages/member/address-direct/address-direct?type=1&tc="+this.type+ s : 1 == e && (t = "/pages/member/address-direct/address-direct?type=2&tc="+this.type+i), 
							  console.log('t',t);
							  console.log('e',e);
							  this.skipPage(t, e);
						  }
					},
                    changeExpress: function(e) {
                        this.couponInfo = "", this.payload.coupon_code = "", this.$db.del("activeCoupon"), 
                        this.$db.del("activeCouponIndex"), this.expressInfo.name != e.name && (this.payload.sendStartTime = "", 
                        this.payload.sendEndTime = "", this.payload.insurancePrice = "",this.payload.is_agree = "on",  this.payload.insuranceValue = ""), 
                        console.log(e), "0" != e.is_yuyue ? this.is_yuyue = !0 : this.is_yuyue = !1, "0" != e.is_baojia ? this.is_baojia = !0 : this.is_baojia = !1, 
                        this.expressInfo = e, this.payload.cargodata.express_code = e.name, this.payload.cargodata.express_channel = e.channel, 
                        this.payload.cargodata.transportType = e.transportType, this.payload.cargodata.type = e.type, this.payload.cargodata.distance = e.distance, 
                        "DEPPON" == e.name && "1" == e.channel ? (this.submitName = "立即预约", this.couponInfo = "", 
                        this.payload.coupon_code = "", this.$db.del("activeCoupon"), this.$db.del("activeCouponIndex")) : this.submitName = "立即下单", 
                        this.getOrderInformation();
                    },
                    changeAgree: function(e) {
                        1 === e.detail.value.length ? this.payload.is_agree = "on" : this.payload.is_agree = "";
                    },
                    changePayload: function(e, s) {
                        "cargodata" === e && (this.expressInfo = ""), "selecttimemodal" === e ? this.payload.sendStartTime == s.sendStartTime && this.payload.sendEndTime == s.sendEndTime ? (this.payload.sendStartTime = "", 
                        this.payload.sendEndTime = "") : (this.payload.sendStartTime = s.sendStartTime, 
                        this.payload.sendEndTime = s.sendEndTime) : this.payload[e] = s;
                    },
                    confirmOrder: function() {
                        if (this.disabled) {
                            var s = "";
                            return this.sendAddr ? this.receiptAddr ? this.expressInfo ? this.payload.is_agree ? this.wlxfJump || (s = "您已下单,请前往查快递查看") : s = "请阅读并同意《快递小程序服务协议》" : s = "请填写物品信息与选择快递公司" : s = "请选择收件地址信息" : s = "请选择寄件地址信息", 
                            void this.$common.errorToShow(s);
                        }
                        if ("DEPPON" != this.expressInfo.name && this.payload.totalNumber > 1) this.expressInfo.nickname, 
                        this.$common.errorToShow("仅德邦快递支持子母件,请将包裹数改为1"); else {
                            var i = JSON.parse(JSON.stringify(this.payload));
                            if (i.rmail_id != i.smail_id) if (console.log("expressInfo", this.expressInfo), 
                            "1" != this.expressInfo.is_yuyue || "" != i.sendStartTime) {
                                if (i.sendStartTime) {
                                    var t = [ {
                                        name: "今天",
                                        val: Date.now()
                                    }, {
                                        name: "明天",
                                        val: 864e5 + Date.now()
                                    }, {
                                        name: "后天",
                                        val: 1728e5 + Date.now()
                                    } ], n = new Date(t.find(function(e) {
                                        return e.name === i.sendStartTime;
                                    }).val);
                                    i.sendStartTime = n.getFullYear() + "-" + (n.getMonth() + 1) + "-" + n.getDate();
                                }
                                if (i.cargodata = JSON.stringify(i.cargodata), i.source = "", i.source = "2", i.is_dw = this.is_dw, i.type = this.type,
                                console.log("this.expressInfo.max_weight", this.expressInfo.max_weight), console.log("val.totalWeight", Number(i.totalWeight)), 
                                "5" == this.type && "NZBRH" == this.expressInfo.transportType && "DEPPON" == this.expressInfo.name) {
                                    if (500 < Number(i.totalWeight)) return void this.$common.errorToShow("德邦重包最大限重500KG！");
                                } else if (Number(this.expressInfo.max_weight) < Number(i.totalWeight)) return void this.$common.errorToShow(this.expressInfo.nickname + "最大限重" + this.expressInfo.max_weight + "KG！");
                                var r = this;
                                "DEPPON" != r.expressInfo.name ? e.showModal({
                                    title: r.noticeListTitle + "提醒您",
                                    confirmText: "同意",
                                    content: r.volumetext,
                                    success: function(s) {
                                        if (s.confirm) {
                                            var t = !0;
                                            if ("JD" == r.expressInfo.name && "2" == r.expressInfo.channel) {
                                                var n = new Date(), d = n.getFullYear() + "-" + (n.getMonth() + 1) + "-" + n.getDate();
                                                if (i.sendStartTime == d) {
                                                    var o = i.sendEndTime.split("-");
                                                    n.getHours() >= o[0].substr(0, 2) && (t = !1, e.showModal({
                                                        content: "抱歉，预约时间失效，请修改预约时间后再下单！",
                                                        success: function(e) {
                                                            return !1;
                                                        }
                                                    }));
                                                }
                                            }
                                            if (0 == t) return !1;
                                            r.openMsg(1, function() {
                                                "1" == r.$db.get("run_subscribe") && (r.$db.del("run_subscribe"), r.$api.createOrderApi(i, function(s) {
                                                    if ("1" == s.code) {
                                                        r.submitName = "已下单", r.disabled = !1;
                                                        var i = s.data, t = i.order_id, n = (i.recipients_id, i.order_money), d = i.is_jump_list;
                                                        i.ByteOrder, r.form.order_id = t, r.form.is_jump_list = d, r.$db.set("find_index_rulepop_express_code", r.expressInfo.name), 
                                                        r.$db.set("find_index_rulepop_express_channel", r.expressInfo.channel), 1 == d ? r.$common.successToShow("预约下单成功，等待快递员上门揽件", function() {
                                                            e.hideToast(), r.$db.set("find_index_rulepop", "1"), e.switchTab({
                                                                url: "/pages/find/index/index"
                                                            });
                                                        }) : r.$refs.zbPayModule.open(n, "已下单");
                                                    } else r.$common.errorToShow(s.msg);
                                                }));
                                            });
                                        } else if (s.cancel) return !1;
                                    }
                                }) : r.openMsg(1, function() {
                                    "1" == r.$db.get("run_subscribe") && (r.$db.del("run_subscribe"), r.$api.createOrderApi(i, function(s) {
                                        if ("1" == s.code) {
                                            r.submitName = "已下单", r.disabled = !1;
                                            var i = s.data, t = i.order_id, n = (i.recipients_id, i.order_money), d = i.is_jump_list;
                                            r.form.order_id = t, r.form.is_jump_list = d, r.$db.set("find_index_rulepop_express_code", r.expressInfo.name), 
                                            r.$db.set("find_index_rulepop_express_channel", r.expressInfo.channel), 1 == d ? r.$common.successToShow("预约下单成功，等待快递员上门揽件", function() {
                                                e.hideToast(), r.$db.set("find_index_rulepop", "1"), e.switchTab({
                                                    url: "/pages/find/index/index"
                                                });
                                            }) : r.$refs.zbPayModule.open(n, "已下单");
                                        } else r.$common.errorToShow(s.msg);
                                    }));
                                });
                            } else this.$common.errorToShow(this.expressInfo.nickname + "请预约上门取件时间！"); else this.$common.errorToShow("您的寄件地址与收件地址一致，请检查！");
                        }
                    },
                    changePay: function(s) {
                        var i = this;
                        this.form.paytype = s, this.form.platform = "", this.form.platform = "miniapp", 
                        this.is_nocommission && (this.form.domain = "m"), this.$api.submitpayApi(this.form, function(s) {
                            if ("1" == s.code) 
                            
                            if ("behalf" === i.form.paytype) {


                            } else if ("wechat" === i.form.paytype) {
                                var t = s.data, n = t.timeStamp, r = t.nonceStr, d = t.signType, o = t.paySign;
                                e.requestPayment({
                                    provider: "wxpay",
                                    timeStamp: n,
                                    nonceStr: r,
                                    package: s.data.package,
                                    signType: d,
                                    paySign: o,
                                    success: function(s) {
                                        i.$common.successToShow("运单支付成功，等待快递员上门揽件", function() {
                                            i.$db.set("find_index_rulepop", "1"), e.switchTab({
                                                url: "/pages/find/index/index",
                                                success: function(e) {
                                                    var s = getCurrentPages().pop();
                                                    null != s && null != s && s.onLoad();
                                                }
                                            });
                                        });
                                    },
                                    fail: function(s) {
                                        e.switchTab({
                                            url: "/pages/find/index/index"
                                        });
                                    }
                                });
                            } else i.$common.successToShow(s.msg, function() {
                                i.$db.set("find_index_rulepop", "1"), i.$db.set("find_index_isDeppon", "2"), e.switchTab({
                                    url: "/pages/find/index/index"
                                });
                            }); else i.$common.errorToShow(s.msg);
                        }, function() {
                            e.switchTab({
                                url: "/pages/find/index/index"
                            });
                        });
                    },
                    defaultArea: function() {
                        var e = this;
                        this.$db.get("sendAddr") || this.$api.getdefaultareaApi({tc:e.type}, function(s) {
                            "1" == s.code ? s.data ? (e.payload.smail_id = s.data.id, e.sendAddr = {
                                id: s.data.id,
                                sender_name: s.data.sender_name,
                                sender_phone: s.data.sender_phone,
                                sender_mobile: s.data.sender_mobile,
                                sender_address: s.data.sender_address,
                                sender_addr: s.data.addr,
                                sender_getAddr: s.data.getAddr,
                                sender_province: s.data.sender_province,
                                sender_city: s.data.sender_city,
                                sender_area: s.data.sender_area,
                                sender_lat: s.data.lat,
                                sender_lng: s.data.lng
                            }, e.$db.set("sendAddr", e.sendAddr)) : e.sendAddr = "" : e.$common.errorToShow(s.msg);
                        });
                    },
                    getOrderInformation: function() {
                        var e = this;
                        this.$api.getOrderInformationApi({
                            express_code: this.expressInfo.name,
                            express_channel: this.expressInfo.channel,
                            transportType: this.expressInfo.transportType
                        }, function(i) {
                            "1" == i.code ? (e.noticeListTitle = i.data.title, e.volumetext = i.data.volumetext, 
                            e.noticeList = i.data.list || [], i.data.title ? e.noticeHeight = "noticeHeight" : e.noticeHeight = "") : e.$common.errorToShow(i.msg);
                        });
                    },
                    getShareInfomation: function() {
                        var e = this;
                        return new Promise(function(i) {
                            var s = require("../../siteinfo.js").siteroot;
                            e.$api.getwxsharelistApi({
                                type: 2
                            }, function(i) {
                                1 == i.code && (e.share.title = i.data.title, e.share.imgUrl = s + i.data.photo);
                            });
                        });
                    }
                },
                onShow: function() {
					var _that = this;
					
					var xuzhi_1 = _that.configindex.config.xuzhi_1;
					var xuzhi_2 = _that.configindex.config.xuzhi_2;
					var xuzhi_3 = _that.configindex.config.xuzhi_3;
					var xuzhi_9 = _that.configindex.config.xuzhi_9;

					var ra = this.$db.get("receiptAddr");

					if(1 == this.type && xuzhi_1==1 && !ra){
						_that.$refs.popup_xuzhi.show(); this.xuzhi = 1;this.xuzhi_title = _that.configindex.config.xuzhi_1_title;
					}
					if(2 == this.type && xuzhi_2==1 && !ra){
						_that.$refs.popup_xuzhi.show();this.xuzhi = 1;this.xuzhi_title = _that.configindex.config.xuzhi_2_title;
					}
					if(3 == this.type && xuzhi_3==1 && !ra){
						_that.$refs.popup_xuzhi.show();this.xuzhi = 1;this.xuzhi_title = _that.configindex.config.xuzhi_3_title;
					}
					if(9 == this.type && xuzhi_9==1 && !ra){
						_that.$refs.popup_xuzhi.show();this.xuzhi = 1;this.xuzhi_title = _that.configindex.config.xuzhi_9_title;
					}
                    var tw =1; 
					1 == this.type ? tw =1 : 3== this.type ? tw =30 : tw =1;
                    if (this.vip = 2 === this.$db.get("userInfo").grade, this.couponInfo = this.$db.get("activeCoupon") || "", 
                    this.couponInfo ? this.payload.coupon_code = this.couponInfo.coupon_code : this.payload.coupon_code = "", 
                    3 === this.type) {
                        if (e && this.receiptAddr && e.sender_province !== this.receiptAddr.sender_province) return this.$common.errorToShow("收件省份与寄件省份不一致哦！"), 
                        void (0 === this.changeType && this.$db.set("sendAddr", this.sendAddr));
                        if (this.sendAddr && s && this.sendAddr.sender_province !== s.sender_province) return this.$common.errorToShow("收件省份与寄件省份不一致哦！"), 
                        void (1 === this.changeType && this.$db.set("receiptAddr", this.receiptAddr));
                    }
                    var e = this.$db.get("sendAddr") || "", s = this.$db.get("receiptAddr") || "";
                    e.sender_address == this.sendAddr.sender_address && e.sender_name == this.sendAddr.sender_name && e.sender_phone == this.sendAddr.sender_phone || (this.payload.sendStartTime = "", 
                    this.payload.sendEndTime = "", this.sendAddr = e, this.payload.smail_id = this.sendAddr.id, 
                    this.expressInfo = "", this.couponInfo = "", this.payload.coupon_code = "", this.$db.del("activeCoupon"), 
                    this.$db.del("activeCouponIndex"), this.noticeListTitle = "", this.noticeList = "", 
                    this.noticeHeight = "", this.payload.insuranceValue = "", this.payload.insurancePrice = ""), 
                    s.sender_address == this.receiptAddr.sender_address && s.sender_name == this.receiptAddr.sender_name && s.sender_phone == this.receiptAddr.sender_phone || (this.receiptAddr = s, 
                    this.payload.rmail_id = this.receiptAddr.id, this.expressInfo = "", this.payload.insuranceValue = "", 
                    this.payload.insurancePrice = "", this.is_dw = this.receiptAddr.is_dw ? this.receiptAddr.is_dw : "", 
                    this.$db.del("insurance"), this.$db.del("expressInfo"));
                    var i = this.$db.get("insurance") || "";
                    i && (this.payload.insuranceValue = i.insuranceValue, this.payload.insurancePrice = i.insurancePrice, 
                    this.$db.del("insurance"), this.$db.del("expressInfo"));
                    var t = this.$db.get("goodsPayload") || "";
                    t && (this.expressInfo = "", this.is_baojia = !1, this.is_yuyue = !1, 
                    this.payload.totalWeight = t.totalWeight?t.totalWeight:tw, 
                    this.payload.totalNumber = t.totalNumber, this.payload.long = t.long, this.payload.width = t.width, 
                    this.payload.height = t.height, this.payload.cargodata.name = t.cargodata.name?t.cargodata.name:'日用品', 
                    this.payload.cargodata.express_code = t.cargodata.express_code, this.payload.cargodata.express_channel = t.cargodata.express_channel, 
                    this.payload.cargodata.transportType = t.cargodata.transportType,this.payload.cargodata.distance = t.cargodata.distance, this.$db.del("goodsPayload")), 
                    console.log("expressInfo--", this.expressInfo);
                    !t&&(this.payload.totalWeight = t.totalWeight?t.totalWeight:this.payload.totalWeight);    
                    _that.getShareInfomation(), this.$api.getsharediscountApi({}, function(e) {
                        1 == e.code && (_that.payload.isVip = e.data.isVip, _that.payload.isCoupon = e.data.isCoupon, 
                        _that.payload.discountmoney = e.data.discountmoney);
                    }); 
                },
                onLoad: function(s) {
                    var i = this, t = s || {}, n = t.id, r = void 0 === n ? "" : n, d = t.type, o = void 0 === d ? 1 : d;
                    this.type = Number(o),this.model = this.type,this.cate_id = Number(t.cate_id);
                    var a = "";
                    switch (this.type) {
                      case 1:
                        a = "寄快递";
                        break;

                      case 2:
                        a = "寄得物";
                        break;

                      case 3:
                        a = "寄重货";
                        break;

                      case 4:
                        a = "寄大件";
                        break;
                      case 5:
                        a = "德邦重包";
                        case 9:
                        a = "同城送";
                    }
                    this.$api.settravel("寄大件" == a ? "德邦大件" : a), e.setNavigationBarTitle({
                        title: a
                    }), this.$api.sentoptxt({
                        type_id: 3
                    }, function(e) {
                        "1" == e.code && (i.title_content = JSON.stringify(e.data.content));
                    }), r && this.$api.orderCopyApi({
                        recipients_id: r
                    }, function(e) {
                        if ("1" == e.code) {
                            var s = e.data;
                            console.log("==========s=========", s), i.payload = {
                                smail_id: s.senders.smail_id,
                                rmail_id: s.recipients.rmail_id,
                                cargodata: {
                                name: s.recipients.cargoName,
                                distance: "",
                                    express_code: "",
                                    express_channel: "",
                                    transportType: ""
                                },
                                totalNumber: s.recipients.totalNumber,
                                totalWeight: s.recipients.totalWeight,
                                long: s.recipients.long,
                                width: s.recipients.width,
                                height: s.recipients.height,
                                sendStartTime: "",
                                sendEndTime: "",
                                remark: s.recipients.remark,
                                insuranceValue: s.recipients.insuranceValue,
                                is_agree: "",
                                coupon_code: "",
                                isShared: s.payload.isShared
                            }, i.sendAddr = {
                                id: s.senders.id,
                                sender_name: s.senders.sender_name,
                                sender_phone: s.senders.sender_phone,
                                sender_mobile: s.senders.sender_mobile,
                                sender_province: s.senders.sender_province,
                                sender_city: s.senders.sender_city,
                                sender_area: s.senders.sender_area,
                                sender_lat: s.senders.lat,
                                sender_lng: s.senders.lng,
                                sender_addr: s.senders.addr,
                                sender_getAddr: s.senders.getAddr,
                                sender_address: s.senders.sender_province + s.senders.sender_city + s.senders.sender_area + s.senders.sender_address
                            }, i.receiptAddr = {
                                id: s.recipients.rmail_id,
                                sender_name: s.recipients.recipients_name,
                                sender_phone: s.recipients.recipients_phone,
                                sender_mobile: s.recipients.recipients_mobile,
                                sender_province: s.recipients.recipients_province,
								sender_city: s.recipients.recipients_city,
								sender_lat: s.recipients.lat,
                                sender_lng: s.recipients.lng,
                                sender_addr: s.senders.addr,
                                sender_getAddr: s.senders.getAddr,
                                sender_address: s.recipients.recipients_province + s.recipients.recipients_city + s.recipients.recipients_area + s.recipients.recipients_address
                            }, i.expressInfo = "", i.$db.set("sendAddr", i.sendAddr), i.$db.set("receiptAddr", i.receiptAddr);
                        } else i.$common.errorToShow(e.msg);
                    }), this.$db.get("userToken") && (this.$api.getUserInfoApi({
                        user_id: this.$db.get("userId")
                    }, function(e) {
                        if ("1" == e.code) {
                            var s = e.data;
                            i.$db.set("userInfo", s);
                        } else i.$common.errorToShow(e.msg);
                    }), this.defaultArea());
                },
                onUnload: function() {
                    this.$db.del("sendAddr"), this.$db.del("receiptAddr"), this.$db.del("activeCoupon"), 
                    this.$db.del("activeCouponIndex");
                },
                onLaunch: function() {
                    wx.showShareMenu({
                        menus: [ "shareAppMessage", "shareTimeline" ]
                    });
                },
				onShareAppMessage: function(e) {
					console.log('------onShareAppMessage-------',e);
					var i = require("../../siteinfo.js").siteroot, s = this;
					if ("button" == e.from){
						var type = e.target.dataset.type;
						var order_id = s.form.order_id;
						if(type==1){
							var url = "/subpages/pages/behalf/behalf?id="+order_id;
							console.log('------代付url-------',url);
							return {
									title: '您的朋友申请了一笔代付订单',
									imageUrl: s.configindex.index_share,
									path: url
							};
						}
					};
					s.payload.isShared = 1, s.$api.getwxsharelistApi({
						type: 1
					}, function(e) {
						1 == e.code && (s.share.title = e.data.title, s.share.imgUrl = i + e.data.photo);
					});
					console.log('------s.share.-------',s.share);
					console.log('------s-url-------',"/pages/index/index?user_id=".concat(s.$db.get("userId")));
					return {
						title: s.share.title,
						imageUrl: s.share.imgUrl,
						path: "/pages/index/index?user_id=".concat(s.$db.get("userId"))
					};
				},
                onShareTimeline: function(e) {
                    var i = this;
                    return i.payload.isShared = 1, {
                        title: i.share.title,
                        imageUrl: i.share.imgUrl
                    };
                }
            };
            s.default = t;
        }).call(this, i("543d").default);
    },
    "91ea": function(e, s, i) {
        var t = i("fcd4");
        i.n(t).a;
    },
    "9c3b": function(e, s, i) {
        i.r(s);
        var t = i("47a1"), n = i("a669");
        for (var r in n) "default" !== r && function(e) {
            i.d(s, e, function() {
                return n[e];
            });
        }(r);
        i("91ea");
        var d = i("f0c5"), o = Object(d.a)(n.default, t.b, t.c, !1, null, "7130c7b8", null, !1, t.a, void 0);
        s.default = o.exports;
    },
    a669: function(e, s, i) {
        i.r(s);
        var t = i("8884"), n = i.n(t);
        for (var r in t) "default" !== r && function(e) {
            i.d(s, e, function() {
                return t[e];
            });
        }(r);
        s.default = n.a;
    },
    fcd4: function(e, s, i) {}
}, [ [ "8759", "common/runtime", "common/vendor" ] ] ]);